<Joyeasy:list sql="SELECT * FROM `wode_category` where id=$parentid" id="r">					
    <!--二级banner-->
	<div class="erjibanner">
		<img src="{$r.image}" style="width:100%;height:309px;" />
	</div>
    <!--二级banner-->
    <!--二级content-->
	<div class="content">
		<div class="content_n">
			<div class="ejleft">
				<div class="ejleft_s">
				{$r.catname}
				</div>
				<div class="ejleft_x">
                    <Joyeasy:list sql="SELECT * FROM `wode_category` where parentid=$r[id] order by listorder asc,id asc" id="rs">					
                        <if condition="$rs.id eq $catid">
                            <a href="{$rs.url}" style="color:#70bb2b;background:url(../Public/images/ejm.png) no-repeat;">{$rs.catname}</a>
                        <else />
                            <a href="{$rs.url}">{$rs.catname}</a>
                        </if>
                    </Joyeasy:list>
				</div>
			</div>
			<div class="erjiright">
                <volist name="list" id="r">
				<a href="{$r.url}">
					<div class="ejnews_l">
						<div class="ejnews_l_z">
							<img src="{$r.thumb}" width="289" height="178" />
						</div>
						<div class="ejnews_l_y">
							<div class="ejnews_l_y_s">
							{$r.title|str_cut=###,68}
							</div>
							<div class="ejnews_l_y_x">
							{$r.description|str_cut=###,470}
							<span>【查看详情】</span>
							</div>
						</div>
						<div class="clear"></div>
					</div>
				</a>
                </volist>
                <div id="pages">
                {$pages}
                </div>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div>
	</div>
    <!--二级content-->
</Joyeasy:list>
